package com.huangliusong.desigin.pattern.structual.proxy.db;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author huangliusong
 * @since 2018/10/13
 * {@link }
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDBType();
    }
}
